﻿@model List<BlogAssignment.Models.BlogPost>
@using BlogAssignment.Models

@{
            ViewBag.Title = "Home Page";
}


<div class="row">
    <div class="well">
        <div class="col-md-12">
            <h1>Blog Post!</h1>

            @foreach (var post in Model)
            {
                <div>
                    <ul>
                        <li>@post.Title</li>
                        <li>@post.UserName</li>
                        <li>@post.Text</li>
                        <li>@post.DateCreated</li>
                    </ul>
                </div>
            }
        </div>
    </div>
</div>